package org.eremite.corm.money;

import org.jscience.physics.amount.Amount;

import javax.measure.quantity.Quantity;
import java.util.Date;

public class Payment<Q extends Quantity> {
    private Date dateMade;
    private Date dateReceived;
    private Date dateDue;
    private Date dateCleared;
    private Amount<Q> amount;
    private PaymentMethod<Q> method;

    public Payment() {
    }

    public Date getDateMade() {
        return dateMade;
    }

    public void setDateMade(Date dateMade) {
        this.dateMade = dateMade;
    }

    public Date getDateReceived() {
        return dateReceived;
    }

    public void setDateReceived(Date dateReceived) {
        this.dateReceived = dateReceived;
    }

    public Date getDateDue() {
        return dateDue;
    }

    public void setDateDue(Date dateDue) {
        this.dateDue = dateDue;
    }

    public Date getDateCleared() {
        return dateCleared;
    }

    public void setDateCleared(Date dateCleared) {
        this.dateCleared = dateCleared;
    }

    public Amount<Q> getAmount() {
        return amount;
    }

    public void setAmount(Amount<Q> amount) {
        this.amount = amount;
    }

    public PaymentMethod<Q> getMethod() {
        return method;
    }

    public void setMethod(PaymentMethod<Q> method) {
        this.method = method;
    }
}
